package com.jyx.api.oauth;

import com.jyx.framework.domain.ucenter.request.RegisterRequest;
import com.jyx.framework.domain.ucenter.response.JwtResult;
import com.jyx.framework.domain.ucenter.response.LoginResult;
import com.jyx.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Api(value = "用户认证",tags = {"用户认证接口"})
public interface AuthControllerApi {
    @ApiOperation("用户登录")
    LoginResult login(LoginResult loginResult, HttpServletResponse response);
    @ApiOperation("用户退出登录")
    ResponseResult logout(HttpServletRequest request);

    @ApiOperation("用户注册")
    ResponseResult register(RegisterRequest registerRequest);

    @ApiOperation("查询userjwt令牌")
    JwtResult userJwt(HttpServletRequest request);
}
